package com.levenx.vo.support;

public class DefaultPageResult<T> extends DefaultResult<T> {

    private long count;

    private int pn;

    private int ps;

    public DefaultPageResult() {
    }

    public DefaultPageResult(int pn, int ps, long count, T data) {
        super(data);
        this.count = count;
        this.pn = pn;
        this.ps = ps;
    }

    public DefaultPageResult(int status, String massage, int pn, int ps, long count, T data ) {
        super(status, massage, data);
        this.count = count;
        this.pn = pn;
        this.ps = ps;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public int getPn() {
        return pn;
    }

    public void setPn(int pn) {
        this.pn = pn;
    }

    public int getPs() {
        return ps;
    }

    public void setPs(int ps) {
        this.ps = ps;
    }

    @Override
    public String toString() {
        return "DefaultPageResult{" +
                "count=" + count +
                ", pn=" + pn +
                ", ps=" + ps +
                '}';
    }
}
